<?php
$menu = array();
switch ($action) {
	case 'Post':
	case 'PostList':
		$menu['post'] = 'class="current"';
		break;
	case 'Class':
	case 'Class1':
		$menu['class'] = 'class="current"';
		break;
	case 'Comments':
		$menu['comment'] = 'class="current"';
		break;
	case 'BlogSet':
		$menu['blogset'] = 'class="current"';
		break;
	case 'UserSet':
		$menu['userset'] = 'class="current"';
		break;
	case 'LinkManage':
		$menu['linkmanage'] = 'class="current"';
		break;
}
if(!isset($_SESSION['User_F_ID']))
{
	echo "<script type=\"text/javascript\">";
	echo "alert('对不起，您未登陆！请先登陆');";
	echo "window.location='../login.php';";
	echo "</script>";
	exit();
}
$blogid = $User->GetBlogId($_SESSION['User_F_ID']);
$info = $blog->getInfo($blogid,'em_blog_info');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="keywords" content="<?php echo $info['F_BLOG_KEYWORDS']?>"><meta name="description" content="<?php echo $info['F_BLOG_DESCRIPTION']?>"><meta name="author" content="杨康(kang.yang)"><meta name="robots" content="nofollow"><meta name="copyright" content="kang-yang.cn 版权所有"><meta name="revisit-after" Content="7 days"><title><?php echo $info['F_BLOG_NAME']?></title><link rel="stylesheet" type="text/css" href="../skins/css/admin.css"></head>
<body>
<div id="container"><div id="header">
<div id="top-cont"><ul>
<li><a target="_blank" href="http://blog.kang-yang.cn">访问Blog首页</a></li>
<li><?php echo $_SESSION['User_Nickname'] ?>，您好，[<a href="../logout.php"><strong>退出</strong></a>]</li>
</ul></div>
<h1 title="<?php echo $info['F_BLOG_NAME']?>"><a href="http://blog.kang-yang.cn" title="返回blog首页"><?php echo $info['F_BLOG_NAME']?></a></h1>
</div>
<div id="nav" class="tab">
<ul>
  <li <?php echo $menu['post']?>><a href="./"><em>文章管理</em></a></li>
  <li <?php echo $menu['class']?>><a href="?Action=Class"><em>分类管理</em></a></li>
  <li <?php echo $menu['comment']?>><a href="?Action=Comments"><em>评论管理</em></a></li>
  <li <?php echo $menu['blogset']?>><a href="?Action=BlogSet"><em>Blog设置</em></a></li>
  <li <?php echo $menu['userset']?>><a href="?Action=UserSet"><em>个人设置</em></a></li>
  <li <?php echo $menu['linkmanage']?>><a href="?Action=LinkManage"><em>链接管理</em></a></li>
</ul>
